//
//  LBCategoryViewController.h
//  jslj
//
//  Created by luckyRoy on 2017/10/10.
//  Copyright © 2017年 广东联结电子商务有限公司. All rights reserved.
//

#import <LBUIKit/LBUIKit.h>
#import "LBCategoryManagerURL.h"
#import "LBCategoryModel.h"

typedef void(^LBCategoryViewControllerBlock)(NSArray<LBCategoryModel *> *selectedArray);

@interface LBCategoryViewController : LBBaseViewController

/**
 通用分类选择分类选择
 
 @param codeType send viewController parameter
 @param codeArray selected category code list
 @param isSingleSelected single or multiple Selected yes:singleSelected
 @param level max can selected Level >= 2
 @param complete return selectedArray
 */
- (instancetype)initWithType:(LBCategoryBizCodeType)codeType
                 chooseArray:(NSArray <NSString *> *)codeArray
            isSingleSelected:(BOOL)isSingleSelected
            maxSelectedLevel:(NSInteger)level
                    complete:(LBCategoryViewControllerBlock)complete;

@end
